notebook: Remove irrelevant case
authorBenjamin Otte <otte@redhat.com>
Sat, 19 Dec 2015 05:58:14 +0000 (06:58 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 11 Jan 2016 16:05:22 +0000 (17:05 +0100)
The page is never the current page, because it was just created and the
current page wasn't changed yet.

gtk/gtknotebook.c

index bbf1849a649d4178be5557c6ee93ab5dfe2b91c6..15276063c6acbcae94d3cd784ff87428e2d9a7a2 100644 (file)
@@ -4800,8 +4800,7 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
                                    g_list_find (priv->children, page));
 
   /* child visible will be turned on by switch_page below */
-  if (priv->cur_page != page)
-    gtk_widget_set_child_visible (child, FALSE);
+  gtk_widget_set_child_visible (child, FALSE);
 
   gtk_widget_set_parent (child, GTK_WIDGET (notebook));
   if (tab_label)